﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Lawyer.Web.PostInfo
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					string PostID= strid;
					ShowInfo(PostID);
				}
			}
		}
		
	private void ShowInfo(string PostID)
	{
		Lawyer.BLL.PostInfo bll=new Lawyer.BLL.PostInfo();
		Lawyer.Model.PostInfo model=bll.GetModel(PostID);
		this.lblPostID.Text=model.PostID;
		this.lblTile.Text=model.Tile;
		this.lblDetail.Text=model.Detail;
		this.lblStatus.Text=model.Status.ToString();
		this.lblCreatedBy.Text=model.CreatedBy;
		this.lblCreatedDate.Text=model.CreatedDate.ToString();
		this.lblUpdatedBy.Text=model.UpdatedBy;
		this.lblUpdatedDate.Text=model.UpdatedDate.ToString();

	}


    }
}
